package org.zfes.snowier.cloud.zbss.cms.site.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsSiteUserDefineAttr extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsSiteUserDefineAttr() {}
	public CmsSiteUserDefineAttr(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->
	@javax.validation.constraints.NotNull(message="不能为空")
	  private java.lang.Long siteId;
 
	@javax.validation.constraints.NotNull(message="名称不能为空")
	@javax.validation.constraints.NotBlank(message="名称不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=30,message="名称长度不能大于30")
	  private java.lang.String attrName;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="值长度不能大于255")
	  private java.lang.String attrValue;
 
	@javax.validation.constraints.NotNull(message="状态:不能为空")
	  private java.lang.Byte status;
 
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	@javax.validation.constraints.NotNull(message="更新时间不能为空")
	  private java.util.Date updateTime;
 
	
	//<-------------------------------------------->
	public CmsSiteUserDefineAttr setSiteId(java.lang.Long siteId){
	 this.siteId=siteId;
	 return this;
	}
	public java.lang.Long getSiteId(){
		return this.siteId;
	}
	public CmsSiteUserDefineAttr setAttrName(java.lang.String attrName){
		this.attrName=attrName==null?null:attrName.trim();
	 return this;
	}
	public java.lang.String getAttrName(){
		return this.attrName;
	}
	public CmsSiteUserDefineAttr setAttrValue(java.lang.String attrValue){
		this.attrValue=attrValue==null?null:attrValue.trim();
	 return this;
	}
	public java.lang.String getAttrValue(){
		return this.attrValue;
	}
	public CmsSiteUserDefineAttr setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsSiteUserDefineAttr setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CmsSiteUserDefineAttr setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}

}
